package org.liang.base.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {
    //查询条件
    private String key;
    //每页显示条数
    private Integer pageSize;
    //当前页
    private Integer currentPage;
    //获取起始条数
    public int getStart(){
        return (this.currentPage-1)*this.pageSize;
    }
}
